package com.weitu.threeSimultaneities.trackingMonthReport.service.impl;

import com.weitu.threeSimultaneities.trackingMonthReport.entity.Report;
import com.weitu.threeSimultaneities.trackingMonthReport.mapper.ReportMapper;
import com.weitu.threeSimultaneities.trackingMonthReport.service.ReportService;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ReportServiceImpl implements ReportService {
    @Autowired
    private ReportMapper reportMapper;


    public Report selectByPrimaryKey(String id) {
        return this.reportMapper.selectByPrimaryKey(id);
    }


    public int deleteByPrimaryKey(String id) {
        return this.reportMapper.deleteByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(Report record) {
        return this.reportMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(Report record) {
        return this.reportMapper.updateByPrimaryKey(record);
    }

    public int insert(Report record) {
        return this.reportMapper.insert(record);
    }

    public int insertSelective(Map<String,Object> record) {
        return this.reportMapper.insertSelective(record);
    }

    @Override
    public List<Map<String, Object>> selectReport(Map<String, Object> map) {
        return this.reportMapper.selectReport(map);
    }

    @Override
    public int selectReportCount(Map<String, Object> map) {
        return this.reportMapper.selectReportCount(map);
    }

    @Override
    public int updateReportState(String id) {
        return this.reportMapper.updateReportState(id);
    }
}